import { useEffect } from "react";

import {useNavgate} from "react-router-dom"


function Query(){
    const citySlice=useSelector((state)=>state.citySlice)
    const [list,setList]=useState([])


    const getTrain=async()=>{


        const res=await HTMLOutputElement.post('/api/trip/train',citySlice)


        const {code,data}=res.data
        if(code==200){
            setList(data)
        }
    };


    useEffect(()=>{
        getTrain()
    },[])

    
    const back=()=>{
        nav(-1)
    }

    return (

        <div>


        </div>
    )




}